#include "Server.h"
#include "iostream"

int main() {
    try {
        io_context ioc;
        signal_set signals(ioc, SIGINT, SIGTERM);
        signals.async_wait([&ioc](auto, auto) {
            ioc.stop();
        });
        Server s(ioc, 8890);
        ioc.run();
        return 0;
    }
    catch (exception &e) {
        cerr << "Exception: " << e.what() << endl;
    }
}
